package com.huabo.monitor.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author yhr
 * @since 2022-09-05
 */
@TableName("TBL_FLOW")
@ApiModel(value = "TblFlow对象", description = "")
@KeySequence(value="HIBERNATE_SEQUENCE",dbType = DbType.ORACLE)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TblFlow implements Serializable {

    private static final long serialVersionUID = 1L;
    public final static Integer YES_VSESION=1;
    public final static Integer NO_VSESION=0;
    public final static Integer STATE_SP = 1;//审批中
    public final static Integer STATE_TZ = 2;//调整
    public final static Integer STATE_TG = 3;//已通过
    public final static Integer STATE_ZZ = 4;//已终止
    public final static Integer STATE_GZ = 5;//已跟踪
    public final static Integer STATE_WC = 6;//已完成

    @ApiModelProperty("流程ID")
    @TableId(type= IdType.INPUT)
    private BigDecimal flowid;

    @ApiModelProperty("流程编号")
    private String flownumber;

    @ApiModelProperty("流程名称")
    private String flowname;

    @ApiModelProperty("公司ID")
    private String company;

    @ApiModelProperty("部门ID")
    private String departincharge;

    @ApiModelProperty("使用范围")
    private String flowrange;

    @ApiModelProperty("流程状态")
    private String flowstatus;

    @ApiModelProperty("备注")
    private String memo;

    @ApiModelProperty("版本")
    private BigDecimal version;

    private String flowchart;

    @ApiModelProperty("业务参与部门")
    private String departassist;

    @ApiModelProperty("录入人")
    private String editor;

    @ApiModelProperty("更新时间")
    private LocalDateTime updatetime;

    private String relatedrules;

    private String affectdegree;

    @TableField("interface")
    private String interface_;

    @ApiModelProperty("父流程ID")
    private BigDecimal fatherflowid;

    @ApiModelProperty("创建时间")
    private String createtime;

    @ApiModelProperty("最后更改时间")
    private String lastmodifiedtime;

    private Integer flowbysystem;

    private BigDecimal inflowdb;

    private BigDecimal position;

    private BigDecimal versiontype;

    private BigDecimal status;

    private String settingid;

    private BigDecimal fromid;

    private BigDecimal firingstatus;

    private String editmodule;

    private String flowmappingurl;

}
